package com.hourse.pojo;


import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;

@Document(indexName = "hourse_search",type = "hourse")
public class HouseSearch implements Serializable {
    @Id
    private Long id;
    //是否索引，就是看该域是否能被搜索
    //是否分词，就表示搜索的时候是整体匹配还是单词匹配
    //是否存储，就是是否在页面上显示
    @Field(index = true,analyzer ="ik_max_word",searchAnalyzer = "ik_max_word")

    private String house_title;

    private String house_img;

    private String house_address;
    @Field(index = true)
    private Integer house_price;
    @Field(index = true)
    private Integer house_kaipan;
    @Field(index = true)
    private Integer house_wuye;
    @Field(index = true)
    private Long house_status;
    @Field(index = true)
    private Long house_tese;
    @Field(index = true)
    private Long house_type;


    private String state;//审核状态

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHouse_title() {
        return house_title;
    }

    public void setHouse_title(String house_title) {
        this.house_title = house_title;
    }

    public String getHouse_img() {
        return house_img;
    }

    public void setHouse_img(String house_img) {
        this.house_img = house_img;
    }

    public String getHouse_address() {
        return house_address;
    }

    public void setHouse_address(String house_address) {
        this.house_address = house_address;
    }

    public Integer getHouse_price() {
        return house_price;
    }

    public void setHouse_price(Integer house_price) {
        this.house_price = house_price;
    }

    public Integer getHouse_kaipan() {
        return house_kaipan;
    }

    public void setHouse_kaipan(Integer house_kaipan) {
        this.house_kaipan = house_kaipan;
    }

    public Integer getHouse_wuye() {
        return house_wuye;
    }

    public void setHouse_wuye(Integer house_wuye) {
        this.house_wuye = house_wuye;
    }

    public Long getHouse_status() {
        return house_status;
    }

    public void setHouse_status(Long house_status) {
        this.house_status = house_status;
    }

    public Long getHouse_tese() {
        return house_tese;
    }

    public void setHouse_tese(Long house_tese) {
        this.house_tese = house_tese;
    }

    public Long getHouse_type() {
        return house_type;
    }

    public void setHouse_type(Long house_type) {
        this.house_type = house_type;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
